package com.lifeng.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import org.springframework.stereotype.Component;
@WebListener
//@Component
public class MyListener implements ServletContextListener{
	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		System.out.println("servletContext销毁......");
	}
	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		System.out.println("servletContext初始化......");  
	}
}
